package com.ruoyi.offer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.offer.mapper.HrRecruitmentRequestMapper;
import com.ruoyi.offer.domain.HrRecruitmentRequest;
import com.ruoyi.offer.service.IHrRecruitmentRequestService;

/**
 * 招聘需求Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrRecruitmentRequestServiceImpl implements IHrRecruitmentRequestService 
{
    @Autowired
    private HrRecruitmentRequestMapper hrRecruitmentRequestMapper;

    /**
     * 查询招聘需求
     * 
     * @param id 招聘需求主键
     * @return 招聘需求
     */
    @Override
    public HrRecruitmentRequest selectHrRecruitmentRequestById(Long id)
    {
        return hrRecruitmentRequestMapper.selectHrRecruitmentRequestById(id);
    }

    /**
     * 查询招聘需求列表
     * 
     * @param hrRecruitmentRequest 招聘需求
     * @return 招聘需求
     */
    @Override
    public List<HrRecruitmentRequest> selectHrRecruitmentRequestList(HrRecruitmentRequest hrRecruitmentRequest)
    {
        return hrRecruitmentRequestMapper.selectHrRecruitmentRequestList(hrRecruitmentRequest);
    }

    /**
     * 新增招聘需求
     * 
     * @param hrRecruitmentRequest 招聘需求
     * @return 结果
     */
    @Override
    public int insertHrRecruitmentRequest(HrRecruitmentRequest hrRecruitmentRequest)
    {
        return hrRecruitmentRequestMapper.insertHrRecruitmentRequest(hrRecruitmentRequest);
    }

    /**
     * 修改招聘需求
     * 
     * @param hrRecruitmentRequest 招聘需求
     * @return 结果
     */
    @Override
    public int updateHrRecruitmentRequest(HrRecruitmentRequest hrRecruitmentRequest)
    {
        return hrRecruitmentRequestMapper.updateHrRecruitmentRequest(hrRecruitmentRequest);
    }

    /**
     * 批量删除招聘需求
     * 
     * @param ids 需要删除的招聘需求主键
     * @return 结果
     */
    @Override
    public int deleteHrRecruitmentRequestByIds(Long[] ids)
    {
        return hrRecruitmentRequestMapper.deleteHrRecruitmentRequestByIds(ids);
    }

    /**
     * 删除招聘需求信息
     * 
     * @param id 招聘需求主键
     * @return 结果
     */
    @Override
    public int deleteHrRecruitmentRequestById(Long id)
    {
        return hrRecruitmentRequestMapper.deleteHrRecruitmentRequestById(id);
    }
}
